<template>
  <div class="">

  </div>
</template>

<script>

import {findWeworkConfig} from "@/api/selfcom/wework";

export default {
  name: "weworkauth",
  components: {  },
  data() {
    return {
    };
  },
  created() {
    this.jumpAuth();
  },
  methods: {
    jumpAuth() {
      let agentid = "1000002";
      let corpid = "wwbad746a94430b440";
      let redirectUrl = encodeURIComponent("http://p.yunwow.cn/weworklogin");
      let state = "on";
      let url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+ corpid +"&redirect_uri=" + redirectUrl + "&response_type=code&scope=snsapi_base&state=" + state + "&agentid="+ agentid +"#wechat_redirect"
      window.location.href = url;
    }
  }
};
</script>
<style>

</style>
